const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
    publicPath:'./', // 注意publicPath的路径是斜杠
  devServer: {
    port: 8081,
     /* historyApiFallback: {
          verbose: true,
          rewrites: [
              { from: /^\/index\/.*$/, to: "/index.html" },
             { from: /^\/sysadmin\/.*$/, to: "/sysadmin.html" }
          ],
      },*/
  },
  chainWebpack: config =>{
    config.plugin('html')
        .tap(args => {
          args[0].title = "二手交易平台";
          return args;
        })
  }
})

